

package javafx179labs.mikhailov.lab1new;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.paint.Color;
import javafx.scene.Group;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.Circle;
import javafx.scene.effect.Reflection;

  Stage {
    title: "JavaFX Record Button"
    width: 249
    height: 251
    scene: Scene {
      fill: LinearGradient {
      startX: 0, startY: 0, endX: 0, endY: 1.0, proportional: true
      stops: [
        Stop {offset: 0.0 color: Color.WHITE},
        Stop {offset: 1.0 color: Color.BLACK}
      ]
    }
    content: [
      Group{
        content: [
          Rectangle {
            x: 40 y: 55 width: 150 height: 50
            arcWidth: 20 arcHeight: 55 stroke: Color.BLACK
            fill: LinearGradient {
              startX: 0.0, startY: 0.0, endX: 0.0, endY: 1.0, proportional: true
              stops: [
                Stop {offset: 0.0 color: Color.WHITE},
                Stop {offset: 1.0 color: Color.BLACK}
              ]
            }
          },
          Circle {
            centerX: 115 centerY: 80 radius: 15
            fill: Color.web("#ff3300") stroke: Color.DARKRED
          }
        ]
        effect:  Reflection {fraction: 0.9  topOpacity: 0.5 topOffset: 2.5}
      }
    ]
    }
  }
